package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * url进行的操作权限
 * @author 吴峰
 * @version v1.0
 * @date 2019/4/22 10:28
 * @since v1.0
 */
@Getter
public enum UrlOperateEnum {

    /**
     * url进行的操作
     */
    CREATE("create", "enum.urlOperate.memo.create"),

    UPDATE("update", "enum.urlOperate.memo.update"),

    DELETE("delete", "enum.urlOperate.memo.delete"),

    COPY("copy", "enum.urlOperate.memo.copy"),

    READ("read", "enum.urlOperate.memo.read"),

    SAVE("save", "enum.urlOperate.memo.save"),

    ;

    private String alias;

    private String memo;

    UrlOperateEnum(String alias, String memo) {
        this.alias = alias;
        this.memo = memo;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }
}
